package com.zensun;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 启动程序
 *
 * @author gmk
 */
@EnableTransactionManagement
@EnableSwagger2
@EnableKnife4j
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class HusbandryApplication {
    private static final Logger logger = LoggerFactory.getLogger(HusbandryApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(HusbandryApplication.class, args);
        logger.info("ZENSUN--------基础框架系统项目启动成功--------ZENSUN");
    }
}
